package eerbaar.v2.app.menu;

import java.util.HashMap;
import java.util.Map;

public class MenuService implements IMenuService {

    private final Map<String, IMenuProvider> map = new HashMap<String, IMenuProvider>();

    @Override
    public IMenuProvider get(String id) {
        return map.get(id);
    }

    @Override
    public void install(IMenuProvider provider) {
        map.put(provider.getId(), provider);
    }

}
